package com.ny.zmb.openapi.ysutil.utils;

/**
 * @ClassName YsChannelEnum
 * @Description 异常枚举
 * @Author linxl
 * @Date 2021/4/6 14:38
 * @Version 1.0
 */
public enum YsChannelEnum {

	PARAM_VERIFY_FAIL("PARAM_VERIFY_FAIL", "参数校验失败"),

	CHANNEL_NULL_MSG_FAIL("CHANNEL_NULL_MSG_FAIL", "渠道返回空信息"),

	STATUS_FAIL("STATUS_FAIL", "fail"),

	STATUS_SUCCESS("STATUS_SUCCESS", "success"),

	VERIFY_SIGN_FAIL("VERIFY_SIGN_FAIL", "验签失败"),

	REQ_IO_EXCEPTION_2_UNKONW("unknow", "网络异常，状态未知"),

	REQ_IO_EXCEPTION_2_FAIL("fail", "网络异常，此请求为失败"),

	;

	private String code;
	private String message;

	private YsChannelEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
